﻿using System;
using System.ComponentModel.DataAnnotations;

namespace KL.UFrame.Data.Models
{
    public class PerformanceModel:CurdModel
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(200,ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = "题目")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(200, ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = "地址")]
        public string Address { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "演出时间")]
        public DateTime ShowTime { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(500, ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = "缩略图")]
        public string Thumb { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(500, ErrorMessage = "{0}长度不能超过{1}位")]
        [Display(Name = "封面")]
        public string ImageUrl { get; set; }

        [Display(Name = "内容")]
        public string Content { get; set; }

        [Display(Name = "视频")]
        public string Video { get; set; }
    }
}